<?php
session_start();
error_reporting(0);
if($_SESSION['username']!="")
{
?>
<!DOCTYPE html>
<html lang="en">
 <head>
     <? include "./include/head.php"; ?>
	  <? include "./include/js.php"; ?>
  </head>
  <body>
  <? include "./include/body.php"; ?>
<?php

include "./config/connection.php";
   
   $propinsi = $_POST['propinsi'];
   $kota = $_POST['kota'];
   $harga= $_POST['harga'];

$eksekusi = "insert into ekspedisi values (NULL, '$propinsi', '$kota', '$harga')";
$in = mysql_query($eksekusi);
if(isset($in))
	{
	echo"<script>alert('Data Berhasil Ditambahkan ')</script>";
        echo"<script>history.go(-2);</script>";
	}
	else
	{
		header ("location:delivery_expense_edit.php?page=input&input=invalid");
	}
?>
<? include "./include/menubawah.php"; ?>
    <?php
    ?>
  </body>
</html>
<?php
    }
else {
    include 'warning.php';
}
?>